<template>
	<view>
		<!-- banner -->
		<u-swiper :list="db.images" circular class="u-m-t-20 u-m-b-20" height="420"></u-swiper>
		<div class="content" v-html='db.content'></div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				db: {}
			}
		},
		onLoad(o) {

			let db = JSON.parse(decodeURIComponent(this.percent2percent25(o.en_db)))
			
			console.log(db.content, 'o.en_dbSKJ');
			this.db = db
			// uni.setNavigationBarTitle({
			// 	title:'测试'
			// })
			uni.setNavigationBarTitle({
				title: db.name
			})
		},
		methods: {
			percent2percent25(URI) {
				if (URI.indexOf('%') > -1) {
					return URI.replace(/%/g, '%25')
				} else {
					return URI;
				}
			}
		}
	}
</script>

<style>

</style>
